package com.llgz.hotelmanageapi.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.llgz.hotelmanageapi.pojo.DO.CheckinInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.llgz.hotelmanageapi.pojo.DTO.CheckinPageDTO;
import com.llgz.hotelmanageapi.pojo.VO.checkinPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.awt.*;
import java.util.List;

/**
 * <p>
 * 入住信息 Mapper 接口
 * </p>
 *
 * @author Bernie_fang
 * @since 2021-07-19
 */
@Mapper
@Repository
public interface CheckinInfoMapper extends BaseMapper<CheckinInfo> {

    // 动态查询入住信息
//    public List<checkinPageVo> queryCheckinInfo(@Param("checkinPageDTO") CheckinPageDTO checkinPageDTO);

    public List<checkinPageVo> queryCheckinInfo(@Param("pageNum") Integer pageNum,
                                                 @Param("pageSize") Integer pageSize,
                                                 @Param("roomId") Integer roomId,
                                                 @Param("roomType")  Integer roomType,
                                                 @Param("orderId") String orderId,
                                                 @Param("name") String name
                                                 );

    // 查询入住信息总数：total
    public int queryCheckinInfoTotal(@Param("pageNum") Integer pageNum,
                                     @Param("pageSize") Integer pageSize,
                                     @Param("roomId") Integer roomId,
                                     @Param("roomType")  Integer roomType,
                                     @Param("orderId") String orderId,
                                     @Param("name") String name);

}
